package org.cs.mgr.before.dao.impl;
import java.util.List;
import java.util.Map;

import org.cs.core.dao.impl.BaseDao;
import org.cs.mgr.before.dao.IGoodsSpecificationDao;
import org.cs.mgr.before.model.Goods_Specification;
import org.springframework.stereotype.Repository;
@Repository
public class GoodsSpecificationDao extends BaseDao<Goods_Specification>  implements IGoodsSpecificationDao {
	//通过goods的id查goods_Specification表
	@Override
	public List<Map<String, Object>> getGoodsSpecification(String id) {
	List<Map<String, Object>> goodsSpecifications = this.findBySql("select * from goods_specification where GOODS_ID="+id);	
	return goodsSpecifications;
	}

	
	//通過goods_specification的id查goods_specification表的一條記錄
	@Override
	public List<Map<String, Object>> getGoodsSpecificationOne(String id) {
		List<Map<String, Object>>  gods_Specification= this.findBySql("select * from goods_specification where ID="+id);
		return gods_Specification;
	}
    
	
	
}
